package com.elio.seatademoorder.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName : StorageFeignClient
 * @Description : 库存
 * @Author : zhaowenyi
 * @Date: 2021/08/13
 */
@FeignClient(value = "seata-demo-storage")
public interface StorageFeignClient {

    @ResponseBody
    @PostMapping(value = "/api/storage/debuct")
    void debuct(@RequestParam(value = "commodityCode", required = true) String commodityCode,
                       @RequestParam(value = "count", required = true) Integer count);
}
